﻿<UserControl x:Class="LiSAClient.WpfClient.View.Frame.Menus.MainMenu"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:menus="clr-namespace:LiSAClient.WpfClient.View.Frame.Menus"
             mc:Ignorable="d" d:DesignHeight="30" d:DesignWidth="500">
    <Border Style="{StaticResource MainMenuBorderStyle}">
        <ListBox ItemsSource="{Binding MenuItems}" 
                 ScrollViewer.HorizontalScrollBarVisibility="Hidden"
                 Style="{StaticResource MainMenuListStyle}" 
                 IsSynchronizedWithCurrentItem="True" 
                 SelectedItem="{Binding SelectedMenuItem}">

            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Horizontal" Margin="0"/>
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <menus:MainMenuItem />
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Border>
</UserControl>
